"""
URL configuration for SaaS_Development_Platform project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from django.views.static import serve
from django.conf import settings

# 错误日志url
from SaaSDevelApiErrSettings import urls as saas_devel_api_err_urls
# 页面设置
from SaaSDevelResourceSettings import urls as saas_reesource_url
# 用户组url
from SaaSDevelRoleRbacSettings import urls as saas_role_rbac_url
# 登录模块url
from SaaSDevelUserLoginSettings import urls as saas_devel_user_login_urls
# 用户模块
from SaaSDevelUserRbacSettings import urls as saas_user_rbac_url
# 登录设置
from SaaSDevelLoginModelSettings import urls as saas_login_model_url
# 获取用户组权限
from SaaSDevelRoleResourceSettings import urls as saas_role_resource_url
# 获取功能包权限
from SaaSDevelModelPackAgeSettings import urls as saas_model_pack_age_url
# 租户系统看板
from SaaSDataTenementSettings import urls as saas_data_tenement_url
# 系统页面总和
from SaaSDataSumResourceSettings import urls as saas_sum_resource_url
# 登录方式
from SaaSDevelLoginModelSettings import urls as saas_login_class_model_url
# 大模块
from SaaSDevelModelClassSettings import urls as saas_model_class_url
# 租户支付api管理
from SaaSDataTenementApiSettings import urls as saas_data_tenement_api_url
# 日志管理
from SaaSDataLogSettings import urls as saas_data_log_url
urlpatterns = [
    path('admin/', admin.site.urls),
    path("platform/api/", include(saas_devel_user_login_urls)),  # 登录模块url
    path("platform/api/", include(saas_devel_api_err_urls)),  # 错误日志url
    path("platform/api/", include(saas_role_rbac_url)),  # 用户组模块url
    path("platform/api/", include(saas_user_rbac_url)),  # 用户模块url
    path("platform/api/", include(saas_reesource_url)),  # 页面设置
    path("platform/api/", include(saas_login_model_url)),  # 登录设置
    path("platform/api/", include(saas_role_resource_url)),  # 获取用户组权限
    path("platform/api/", include(saas_model_pack_age_url)),  # 获取功能包权限
    path("platform/api/", include(saas_data_tenement_url)),  # 租户系统看板
    path("platform/api/", include(saas_sum_resource_url)),  # 总页面系统看板
    path("platform/api/", include(saas_login_class_model_url)),  # 登录方式
    path("platform/api/", include(saas_model_class_url)),  # 大模块
    path("platform/api/", include(saas_data_tenement_api_url)),  # 租户支付api管理
    path("platform/api/", include(saas_data_log_url)),  # 日志管理

]
